package com.ruoyi.gpt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * chatGpt的token业务对象 f_chat_token
 *
 * @author ztx
 * @date 2023-03-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ChatTokenBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 是否启用
     */
    private String isUsed;

    /**
     * token的值
     */
    @NotBlank(message = "token的值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String token;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户user_id
     */
    private Long userId;
    /**
     * 部门id
     */
    private Long deptId;
}
